class Singleton {
    private static Singleton mInstance;
    private Singleton(){

    }
    static Singleton getInstance(){
        if (mInstance==null)
            mInstance = new Singleton();
        return mInstance;
    }
    void doSomething(){
        System.out.println("Singleton.");
    }
}
